import axios from 'axios'
export function request(config) {
  const instance = axios.create({
    // baseURL:'http://123.207.32.32:8000',
    baseURL:'http://152.136.185.210:8000/api/n3',
    timeout:100000
  })
  //2.axios的拦截器
  //2.1请求拦截
  instance.interceptors.request.use(config=>{
    return config;
  },err=>{
  })
  //2.2响应拦截
  instance.interceptors.response.use(res=>{
     return res.data
  },err=>{
  })
  //3网络调用
   return instance(config)
}

